import { type Component, h } from "vue";

/**
 * h函数的参数类型封装, 方便IDE在template中提示
 * @param comp
 * @param props
 */
export function hc<P>(comp: Component<P>, props?: Partial<P>) {
  return h(comp, props as any);
}
